/*
 * LineSensors.h
 *
 * Created: 24/03/2014 05:30:31
 *  Author: Jason
 */ 


#ifndef LINESENSORS_H_
#define LINESENSORS_H_

#define trimlevel 4

void LineSensorsSetup();
void startFloorSensorMode();
void stopFloorSensorMode();
void readLineSensors();
void AdmuxSetup(uint8_t AdcSignal);
void setADCFlags();

void getLinePos();
void trimToLine();

extern int8_t linePos;
extern int8_t lastLinePos;

extern int Accel;
extern int speed;
extern int trim;
extern int FinishLineCrossed;

#endif /* LINESENSORS_H_ */